@@ -59,6 +59,8 @@ angular.module('codexApp.noteView', [])
|
||
| 59 | 59 |
var r = new RegExp('^(?:[a-z]+:)?//', 'i');
|
| 60 | 60 |
if(e.srcElement.protocol == "http:"){
|
| 61 | 61 |
console.log("-> Prevented link from opening: " + e.srcElement.outerHTML.match(/href="([^"]*)/)[1]);
|
| 62 |
+ var open = require("open");
|
|
| 63 |
+ open(e.srcElement.outerHTML.match(/href="([^"]*)/)[1]); |
|
| 62 | 64 |
} |
| 63 | 65 |
if(e.srcElement.protocol == "file:"){
|
| 64 | 66 |
var current_note = FileService.getCurrentNote().path; |
@@ -12,6 +12,7 @@ |
||
| 12 | 12 |
* [X] Navigation History |
| 13 | 13 |
* [X] Syntax Highlight |
| 14 | 14 |
* [X] File Sorting Asc |
| 15 |
+* [X] Open link in external browser |
|
| 15 | 16 |
* [ ] Image View |
| 16 | 17 |
* [X] All Files / All Notes View |
| 17 | 18 |
* [ ] Folders/Notebook view & navigation |
@@ -30,6 +30,7 @@ |
||
| 30 | 30 |
"electron-packager": "^5.0.0", |
| 31 | 31 |
"electron-prebuilt": "^0.33.3", |
| 32 | 32 |
"electron-rebuild": "^1.0.1", |
| 33 |
+ "open": "0.0.5", |
|
| 33 | 34 |
"webshot": "^0.16.0", |
| 34 | 35 |
"xo": "^0.9.0" |
| 35 | 36 |
}, |